package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbSellerMapper;
import com.dongdongshop.pojo.TbSeller;
import com.dongdongshop.service.SellerService;

import javax.annotation.Resource;

@Service
@org.springframework.stereotype.Service
public class SellerServiceImpl implements SellerService {

    @Resource
    private TbSellerMapper tbSellerMapper;

    @Override
    public int insertSeller(TbSeller tbSeller) {
        return tbSellerMapper.insertSelective(tbSeller);
    }

    @Override
    public TbSeller getSellerBySellerId(String sellerId) {
        return tbSellerMapper.selectByPrimaryKey(sellerId);
    }

    @Override
    public String getNikeNameBySellerId(String sellerId) {
        String nikeName = tbSellerMapper.getNikeNameBySellerId(sellerId);
        return nikeName;
    }
}
